<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="__PUBLIC__/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/Validform/5.3.2/style.css" rel="stylesheet" type="text/css" />
<link href="/Tpl/Admin/common/community/community.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>添加小区</title>
</head>
<body>
<div class="pd-20">
	<form action="" method="post" class="form form-horizontal" id="form-community-add">
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>小区编号：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="" placeholder="请输入四位小区编号" id="no" name="no" datatype="n4-4" errormsg="请输入四位小区编号" nullmsg="请输入小区编号：">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>小区名称：</label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="" placeholder="" id="name" name="name" datatype="*" errormsg="" nullmsg="请输入小区名称">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>小区类型：</label>
			<div class="formControls col-5">
				<span class="select-box">
			      <select class="select type" size="1" name="type" nullmsg='请选择小区类型' datatype="*">
			      </select>
			    </span>
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"><span class="c-red">*</span>所在位置：</label>
			<div class="formControls col-5">
				<span class="select-box selectBm">
					<select class="select" name="province" id="province" nullmsg='请选择省份' datatype="*">
						<option value="" checked="checked">请选择省份</option>
					</select>
				</span>
				<span class="select-box selectBm">
					<select class="select" name="city" id="city" nullmsg='请选择城市' datatype="*">
						<option value="" checked="checked">请选择城市</option>
					</select>
				</span>
				<span class="select-box">
					<select class="select" name="area" id="area" nullmsg='请选择区' datatype="*">
						<option value="" checked="checked">请选择区</option>
						<option value="">柯桥区</option>
						<option value="">越城区</option>
					</select>
				</span>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3"></label>
			<div class="formControls col-5">
				<input type="text" class="input-text" value="" placeholder="请输入小区详细地址" id="address" name="address" datatype="*" errormsg="" nullmsg="请输入小区详细地址">
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">经纬度：</label>
			<div class="formControls col-1">
				<input type="text" class="input-text" value="" placeholder="经度" id="lng" name="lng">
			</div>
			<div class="formControls col-1">
				<input type="text" class="input-text" value="" placeholder="纬度" id="lat" name="lat">
			</div>
			<div class="formControls col-3 text-c"><span class="btn btn-success mapBtn">在地图中获取</span></div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">物业开始服务：</label>
			<div class="formControls col-5">
				<input onfocus="WdatePicker()" type="text" class="input-text" value="" placeholder="请选择物业开始服务时间" id="address" name="svr_start_time" datatype="*" errormsg="" nullmsg="请选择物业开始服务时间">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">物业停止服务：</label>
			<div class="formControls col-5">
				<input onfocus="WdatePicker()" type="text" class="input-text" value="" placeholder="请选择物业停止服务时间" id="address" name="svr_end_time" datatype="*" errormsg="" nullmsg="请选择物业停止服务时间">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-3">备注：</label>
			<div class="formControls col-5">
				<textarea name="remark" cols="" rows="" class="textarea"  placeholder="说点什么...100个字符以内" dragonfly="true" value="" onKeyUp="textarealength(this,100)"></textarea>
				<p class="textarea-numberbar"><em class="textarea-length">0</em>/100</p>
			</div>
			<div class="col-4"> </div>
		</div>
		<div class="row cl">
			<div class="col-9 col-offset-3">
				<input class="btn btn-primary radius" type="submit" value="提交">
			</div>
		</div>
	</form>
	<div id="allmap"></div>
</div>
<script type="text/javascript" src="__PUBLIC__/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="__PUBLIC__/lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.js"></script> 
<script type="text/javascript" src="__PUBLIC__/js/H-ui.admin.js"></script> 
<script type="text/javascript" src="/Tpl/Admin/common/community/communityAdd.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/My97DatePicker/WdatePicker.js"></script>
<script src="http://cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/address.js"></script> 
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=LsVpTtltHHaGasLcl06CQpHz"></script>
<script type="text/javascript" src="/Tpl/Admin/common/community/Map.js"></script>
<script type="text/javascript" src="/Tpl/Admin/common/community/getDict.js"></script>
<script type="text/javascript"> 
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$("#allmap").hide();
	$(document).on("click",".mapBtn",function(){
		$("#allmap").show();
		index=layer.open({
			title:'地图',
			maxmin: true,
			area: ['400px', '400px'],
		    type: 1,
		    content: $('#allmap') //这里content是一个DOM
		});
	    // layer_show('地图','{:U('Community/map')}','500');
	});

});
</script>

</body>
</html>